package com.gyg.service;

import com.gyg.domain.CloudVideo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gyg.returns.RespEntity;
import com.gyg.vo.param.DownloadParam;
import com.gyg.vo.param.FileParam;
import com.gyg.vo.param.UpdateFileParam;
import com.gyg.vo.result.AudioListResult;
import com.gyg.vo.result.FileDownloadResult;
import com.gyg.vo.result.VideoListResult;

/**
 * <p>
 * 视频信息表 服务类
 * </p>
 *
 * @author gyg
 * @since 2021-04-14
 */
public interface CloudVideoService extends IService<CloudVideo> {

    /**
     * 视频数据上传
     * @param fileParam
     * @return
     */
    RespEntity uploadVideo(FileParam fileParam);

    /**
     * 使用容量
     * @param userId
     * @return
     */
    Long getVideoByte(Integer userId);

    /**
     * 视频列表
     * @param userId
     * @param pageSize
     * @param pageNum
     * @param content
     * @return
     */
    RespEntity<VideoListResult> cloudVideoList(Integer userId, Integer pageSize, Integer pageNum, String content);

    /**
     * 编辑视频
     * @param updateFileParam
     * @return
     */
    RespEntity editVideo(UpdateFileParam updateFileParam);

    /**
     * 删除视频
     * @param videoId
     * @return
     */
    RespEntity deleteVideo(Integer videoId);

    /**
     * 视频云盘信息
     * @param userId
     * @return
     */
    RespEntity videoCloudInfo(Integer userId);

    /**
     * 提交下载
     * @param downloadParam
     * @return
     */
    RespEntity<FileDownloadResult> download(DownloadParam downloadParam);
}
